#include "form.h"
#include "ui_form.h"

Form::Form(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Form)
{
    ui->setupUi(this);
}


Form::~Form()
{
    delete ui;
}


void Form::on_pushButton_clicked()
{
    QString ip = ui->ip->text();
    int port = ui->port->text().toInt();
    QString agv_name = ui->agv_name->text();
    emit send_form(agv_name,ip,port);
    this->close();
}

